package com.sbtr.business.trainingtask.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.sbtr.business.trainingtask.entity.TrainingInfo;
import com.sbtr.business.trainingtask.entity.TrainingStatusDto;
import com.sbtr.common.PageDto;
import com.sbtr.open.trainingtask.dto.TrainingInfoDto;

import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 * 训练任务表 服务类
 * </p>
 *
 * @author wangwh15
 */
public interface ITrainingInfoService extends IService<TrainingInfo> {

    TrainingInfoDto findById(Long id);

    boolean deleteById(Long id);

    PageDto<TrainingInfoDto> search(String taskName, Long currPage, Long pageSize, Long projectId);


    TrainingInfoDto getByProjectId(Long projectId);
    List<Map<String,Object>> getTrainingStatusList(String ids);

    //===========新版本新增接口=============//
    TrainingInfoDto create(TrainingInfoDto dto) throws IOException;

    List<Long> createBath(TrainingInfoDto dto);

    boolean startTask(Long id);

    boolean stopTask(Long id);
}
